package health.lm.com.mine.entity;

import health.lm.com.component_base.arouter.Router;
import health.lm.com.mine.R;
import health.lm.com.router.ARouterConstant;

/**
 * 我的内容
 */

public class MineContentEntity {
    public final static int CONSUMPTION = 1;
    public final static int ACTIVITY = 2;
    public final static int CONTACTS = 3;
    public final static int TISSUE = 4;
    public final static int TEAM = 5;
    public final static int SHARE = 6;
    public final static int ACTIVATE = 7;
    public final static int THINKBANK = 8;
    public final static int MERCHANTS = 9;
    public final static int SETTING = 10;
    public final static int EXPLAIN = 11;
    public final static int FEEDBACK = 12;
    public final static int ABOUTUS = 13;

    private int type;

    private String title;

    public int getType(){
        return this.type;
    }
    public void setTitle(String title){
        this.title = title;
    }
    public String getTitle(){
        return this.title;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getIconImge() {
        int icons = 0;
        switch (type){
            //消费记录
            case CONSUMPTION:
                icons = R.drawable.profile_menu_01;
                break;
            //我的活动
            case ACTIVITY:
                icons = R.drawable.profile_menu_02;
                break;
            //我的人脉
            case CONTACTS:
                icons = R.drawable.profile_menu_03;
                break;
            //组织架构
            case TISSUE:
                icons = R.drawable.profile_menu_04;
                break;
            //影响力团队
            case TEAM:
                icons = R.drawable.profile_menu_05;
                break;
            //分享
            case SHARE:
                icons = R.drawable.profile_menu_06;
                break;
            //激活
            case ACTIVATE:
                icons = R.drawable.profile_menu_07;
                break;
            //智库
            case THINKBANK:
                icons = R.drawable.profile_menu_08;
                break;
            //我是联盟商
            case MERCHANTS:
                icons = R.drawable.profile_menu_09;
                break;
            //设置
            case SETTING:
                icons = R.drawable.profile_menu_10;
                break;
            //使用说明
            case EXPLAIN:
                icons = R.drawable.profile_menu_11;
                break;
            //意见反馈
            case FEEDBACK:
                icons = R.drawable.profile_menu_12;
                break;
            //关于我们
            case ABOUTUS:
                icons = R.drawable.profile_menu_13;
                break;

            default:
                break;
        }
        return icons;
    }
    public String getArouter() {
        String router = "";
        switch (type){
            //消费记录
            case CONSUMPTION:
                router = ARouterConstant.RecordsListActivity;
                break;
            //我的活动
            case ACTIVITY:
                router = ARouterConstant.MyActivitiesActivity;
                break;
            //我的人脉
            case CONTACTS:
                router = ARouterConstant.HLPeopleActivity;
                break;
            //组织架构
            case TISSUE:
                router = ARouterConstant.OrganizationChartActivity;
                break;
            //影响力团队
            case TEAM:
                router = ARouterConstant.SettingActivity;
                break;
            //分享
            case SHARE:
                router = ARouterConstant.SettingActivity;
                break;
            //激活
            case ACTIVATE:
                router = ARouterConstant.SettingActivity;
                break;
            //智库
            case THINKBANK:
                router = ARouterConstant.ThinkTankActivity;
                break;
            //我是联盟商
            case MERCHANTS:
                router = ARouterConstant.AllianceBusinessActivity;
                break;
            //设置
            case SETTING:
                router = ARouterConstant.SettingActivity;
                break;
            //使用说明
            case EXPLAIN:
                router = ARouterConstant.SettingActivity;
                break;
            //意见反馈
            case FEEDBACK:
                router = ARouterConstant.FeedbackActivity;
                break;
            //关于我们
            case ABOUTUS:
                router = ARouterConstant.SettingActivity;
                break;
            default:
                break;
        }
        return router;
    }

}
